<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加日程</title>

<%@ include file="/pages/inc/header.jsp" %>
<script type="text/javascript">
<%@ include file="/pages/jsp/schedule/scheduleEdit.js" %>
</script>

</head>
<body>
	<div class="main"">
	<form id="scheduleForm">
	<table class="inputTable" cellpadding="0" cellspacing="0">
		<caption>日程编辑</caption>
		<tr>
			<td class="staticTd">人员信息：</td>
			<td class="dynamicTd">
				<div id="personDiv1">
				<input class="easyui-textbox" type="text" id="schedule_person_edit" style="min-width: 170px;" value="<c:out value='${userName}'/>" readonly="true">
				</div>
				<div id="personDiv">
				<select class="easyui-combobox" data-options="editable:false" style="width: 50%;" id="person_name_list_edit" name="person_name_list_edit" class="select_option_type">
                      <c:forEach items="${persons}" var="item">
            				<option <c:if test='${ scheduleInfo.uuid eq item.personuuid}'>selected="selected"</c:if> value="${item.personuuid}">${item.cnname}</option>
      				  </c:forEach>
                 </select>
                 </div>
			</td>
			
		</tr>
		<tr id="hide_type_level">
			<td class="staticTd">日程类型：</td>
			<td class="dynamicTd">
				<select id="schedule_type_Edit" class="easyui-combobox" data-options="editable:false" style="width: 190px">
				 	  <option value="">请选择</option>
                      <option value="1" <c:if test='${"1" eq scheduleInfo.type}'>selected="selected"</c:if> >市政府主要领导召开会议</option>
                      <option value="2" <c:if test='${"2" eq scheduleInfo.type}'>selected="selected"</c:if> >分管领导召开会议</option>
                      <option value="3" <c:if test='${"3" eq scheduleInfo.type}'>selected="selected"</c:if> >公司专题会议</option>
                      <option value="4" <c:if test='${"4" eq scheduleInfo.type}'>selected="selected"</c:if> >市级调研</option>
                      <option value="5" <c:if test='${"5" eq scheduleInfo.type}'>selected="selected"</c:if> >公司级调研</option>
                      <option value="6" <c:if test='${"6" eq scheduleInfo.type}'>selected="selected"</c:if> >市级会见座谈会</option>
                      <option value="7" <c:if test='${"7" eq scheduleInfo.type}'>selected="selected"</c:if> >公司级会见座谈</option>
                </select>
			</td>
			<td class="staticTd">优先级：</td>
			<td class="dynamicTd">
				<select id="calendar_level_Edit" class="easyui-combobox" data-options="editable:false" style="width: 100px;">
				    <option value="">请选择</option>
                    <option value ="1" <c:if test='${"1" eq scheduleInfo.level}'>selected="selected"</c:if> >高</option>
                    <option value ="2" <c:if test='${"2" eq scheduleInfo.level}'>selected="selected"</c:if> >中</option>
                    <option value ="3" <c:if test='${"3" eq scheduleInfo.level}'>selected="selected"</c:if> >低</option>
                </select>
			</td>
		</tr>
		<tr>
			<td class="staticTd">开始时间：</td>
			<td class="dynamicTd">
				<input id="schedule_startime_Edit"  class="easyui-datetimebox in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" name="starttime" editable="false" data-options="required:true,showSeconds:true" value="<fmt:formatDate value='${scheduleInfo.startime}' pattern='yyyy-MM-dd HH:mm:ss' />" placeholder="请填写开始时间">
			</td>
			<td class="staticTd">结束时间：</td>
			<td class="dynamicTd">
				<input id="schedule_endtime_Edit"  class="easyui-datetimebox in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" name="endtime" editable="false" data-options="required:true,showSeconds:true" value="<fmt:formatDate value='${scheduleInfo.endtime}' pattern='yyyy-MM-dd HH:mm:ss' />" placeholder="请填写结束时间">
			</td>
		</tr>
		<tr>
			<td class="staticTd">日程主题：</td>
			<td class="dynamicTd">
				<input type="text" value="<c:out value='${scheduleInfo.theme}'/>" id="schedule_theme_Edit" class="easyui-textbox"  style="min-width: 250px;" data-options="required: true">
			</td>
		</tr>
		<tr>
			<td class="staticTd">日程内容：</td>
			<td class="dynamicTd" colspan="3">
				<textarea style="width: 440px; height: 80px;"  id="schedule_content_Edit" placeholder="请填写日程内容详情..." class="in_box_tarbox_table_input in_box_tarbox_table_textarea">${scheduleInfo.content}</textarea>
			</td>
		</tr>
		<!-- <tr>
			<td class="staticTd">关联CODE：</td>
			<td class="dynamicTd" colspan="3"><input id="categoryIdentify" name="categoryIdentify"  type="text" style="min-width: 152px;" /></td>
		</tr> -->
		<tfoot>
			<td class="footTd" colspan="4">
				<div class="inlineBlock">  
		            <a id="saveButton_Edit" href="#" class="easyui-linkbutton" plain="true" icon="icon-save">保存</a>
		        </div>
			</td>
		</tfoot>
	</table>
	</form>
</div>
</body>
</html>